const querySql=require('./common.js')

let queryBooks = (req, res) => {
    let sql='select * from books'
        querySql(sql).then(data=>{
            console.log(data);
            res.send({
                status:200,
                msg:'查询成功',
               data
            })
        }).catch(err=>{
            console.log(err);
        })
    
    };